﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QQRobot.Services.Models.Response
{
    public class BaiduTranslateResponse
    {
        /// <summary>
        /// 翻译源语言
        /// </summary>
        [JsonProperty("from")]
        public string from { get; set; }

        /// <summary>
        /// 翻译目标语言
        /// </summary>
        [JsonProperty("to")]
        public string to { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("trans_result")]
        public List<TransResult> trans_result { get; set; }

        public class TransResult 
        {
            /// <summary>
            /// 翻译源语言
            /// </summary>
            [JsonProperty("src")]
            public string src { get; set; }

            /// <summary>
            /// 翻译源语言
            /// </summary>
            [JsonProperty("dst")]
            public string dst { get; set; } 
        }
    }
}
